import request from '@/utils/request';

/**
 * 收款报表查询
 * @param {*} params 
 */
export async function getCollectionDetailsReportList(params) {
  return request('/reportForms/getCollectionDetailsReportList', {
    method: 'POST',
    data: { ...params }
  });
}

/**
 * 导出收款报表列表
 * @param {*} params 
 */
export async function exportCollectionDetailsReportList(params) {
  return request('/reportForms/exportCollectionDetailsReportList', {
    method: 'POST',
    data: { ...params }
  });
}

/**
 * 查询支付方式
 * @param {*} params 
 */
export async function getColumnsList(params) {
  return request('/commonInfo/queryDictInfoByType', {
    method: 'POST',
    requestType:'form',
    data: { 
      ...params
     }
  });
}

/**
 * 根据用户信息查询场馆List
 * @param {*} params 
 */
export async function fetchShopList(params) {
  return request('/venueInfo/queryVenueInfoListByUserId', {
    method: 'POST',
    requestType:'form',
    data: { ...params },
  });
}

/**
 * 业绩报表
 * @param {*} params 
 * @returns 
 */
 export async function queryPerformanceDetailsReports(params) {
  return request('/reportFormsV2/queryPerformanceDetailsReports', {
    method: 'POST',
    data: { ...params }
  });
}
